package com.example.exam.pojo.vo.ExamPaperVO;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @description:该类的对象是进入某试卷编辑界面需要传的数据
 */
@Data
public class ExamPaperEditStandardVO {
    private Integer id;

    @NotNull
    private Integer subjectId;
    @NotNull
    private Integer level;
    @NotNull
    private Integer paperType;
    @NotBlank
    private String name;
    @NotNull
    private Integer suggestTime;

    private Integer questionCount;

    private Integer score;

    private String limitStartTime;

    private String limitEndTime;

    private List<String> limitDateTime;

    private Integer frameTextContentId;

    //匹配t_text_content表中的content字段
    private String content;

    @Size(min=1,message = "请添加试卷标题")
    @Valid
    private List<ExamPaperTitleItemVO> titleItems;

    private Boolean deleted;

    Integer createUser;
}
